package com.cb.dao;

import com.cb.pojo.OrderList;
import com.cb.pojo.ScreeninFormation;
import com.cb.pojo.Screens;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface  ScreeninFormationDao {
    int insertScreens(Screens screens);

    int deletescreens(@Param("yyid") String yyid, @Param("numberid") int numberid);

    int updatascreens(@Param("yyid") String yyid, @Param("numberid") int numberid, @Param("number") int number);

    List<Screens> selectscreens(String yyid);

    List<OrderList> sales(@Param("yyid") String yyid, @Param("begintime") Date begintime, @Param("endtime") Date endtime, @Param("status") String status, @Param("ypid") String ypid);

    int updateDiscount(@Param("yyid") String yyid, @Param("discount") double discount, @Param("multiple") int multiple);

    int deleteScreenInformation(String yyid,int numberid);

    Date selectList(String yyid,int numberid);

    List<ScreeninFormation> selectScreeninformation(String yyid,Date nowTime);

    List<OrderList> selectOrderListByYpid(String ypid);

    int deletescreeninformation(int id);

    ScreeninFormation selectConfilctByyyid(String yyid ,int numberid,Date begintime,Date endtime);

    int updateScreeninFormation(int id,String yyid ,int numberid,String ypid,Date begintime,Date endtime);

    ScreeninFormation selectScreeninFormationBynowtime(String yyid,int numberid,Date nowtime);
}
